package xyz.hrzhen;


import com.lealone.main.Lealone;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;


@SpringBootApplication
public class App
{
    public static void main(String[] args) {

        String[] dbArg = {"-config", "./lealone.yaml",};

        // 1 先启动数据库
        // 2 执行另一个线程,启动web服务
        Lealone.main(dbArg, () -> SpringApplication.run(App.class, args));

    }

}
